/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.isp.isp.violation.impl;

import za.ac.cput.sevenpriciples.isp.isp.violation.Employee;

/**
 *
 * @author 210227257
 */
public class WorkerImpl implements Employee{
    private String name;
    private String surname;
    private int account;
    private double salary;
    
    public WorkerImpl(String name, String surname, int account, double salary){
        this.name = name;
        this.surname = surname;
        this.account = account;
        this.salary = salary;
    }

    public WorkerImpl() {
        
    }
    
    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public void setSurname(String surname) {
        this.surname = surname;
    }

    @Override
    public String getSurname() {
        return this.surname;
    }

    @Override
    public void setAccountNumber(int account) {
        this.account = account;
    }

    @Override
    public int getAccountNumber() {
        return this.account;
    }

    @Override
    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public double getSalary() {
        return this.salary;
    }

    @Override
    public String information() {
        return String.format("Name: %s\nSurname: %s\nAccount Number: %d\nSalary: %.2f", this.name, this.surname, this.account, this.salary);
    }
    
}
